<{include file="admin:common/header.html"}>
<div class="page-title">
	<table width="100%" align="center" cellpadding="0" cellspacing="0" >
		<tr>
			<td width="30" align="right"><img src="<{$pager.url}>/images/main-h5-ico.gif" alt="" /></td>
			<th><{$MOD.title}></th>
			<td align="right"><{link ctl="weixin/menu:create" arg0=$weixin.wx_id class="button" title="添加"}></td>
			<td width="15"></td>
		</tr>
	</table>
</div>
<div class="page-data">	
    <p class="tip-notice">微信：<{$weixin.wx_name}>(<{$weixin.wx_sid}>)</p>
	<form id="items-form">
    <table width="100%" border="0" cellspacing="0" class="table-data table">
    <tr><th class="w-100">ID</th><th>菜单名</th><th class="w-50">排序</th><th class="w-150">操作</th></tr>
    <{foreach $menu_list as $item}>    
    <tr>
        <td><label><input type="checkbox" value="<{$item.menu_id}>" name="menu_id[]" CK="PRI"/><{$item.menu_id}><label></td>
        <td><{if $item.parent_id}>&nbsp;&nbsp;|---&nbsp;&nbsp;<{/if}><{$item.title}></td>
        <td><{$item.orderby}></td>
        <td>
            <{link ctl="weixin/menu:edit" args=$item.menu_id title="修改" class="button"}>
            <{link ctl="weixin/menu:delete" args=$item.menu_id act="mini:删除" confirm="mini:确定要删除吗？" title="删除" class="button"}>
        </td>
    </tr>
    <{foreachelse}>
    <tr><td colspan="20"><p class="text-align tip-notice">你还没有添加微信菜单</p></td></tr>
    <{/foreach}>
    </table>
	</form>
	<div class="page-bar">
		<table>
			<tr>
			<td class="w-100"><label><input type="checkbox" CKA="PRI"/>&nbsp;&nbsp;全选</label></td>
			<td colspan="10" class="left">
                <{link ctl="weixin/menu:delete" type="button" submit="mini:#items-form" confirm="mini:确定要批量删除选中的内容吗?" priv="hide" value="批量删除"}>
                <{link ctl="weixin/menu:towechat" type="button" submit="mini:#items-form" priv="hide" value="同步到微信"}>
            </td>
			<td class="page-list"><{$pager.pagebar}></td>
		</tr>
		</table>
	</div>
</div>
<{include file="admin:common/footer.html"}>